package com.atdel.demo01;

/**
 * @BelongsProject: java_study
 * @BelongsPackage: com.atdel.demo
 * @Author: Del
 * @CreateTime: 2025-03-03  11:53
 * @Description: 乐器抽象类
 * @Version: 1.0
 */
abstract class Instrument {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    // 抽象方法，子类必须实现
    abstract void play();
}